package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 送货单批次明细对象 biz_delivery_batch
 * 
 * @author ruoyi
 * @date 2025-10-22
 */
public class BizDeliveryBatch extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 送货批次ID，主键 */
    private Long deliveryBatchId;

    /** 送货单ID */
    @Excel(name = "送货单ID")
    private Long deliveryNoteId;

    /** 送货单编号 */
    @Excel(name = "送货单编号")
    private String deliveryNoteNo;

    /** 采购订单明细ID */
    @Excel(name = "采购订单明细ID")
    private Long itemId;

    /** 采购订单编号 */
    @Excel(name = "采购订单编号")
    private String orderNo;

    /** 批次号 */
    @Excel(name = "批次号")
    private String batchNo;

    /** 存货编码 */
    @Excel(name = "存货编码")
    private String inventoryCode;

    /** 本批次箱数 */
    @Excel(name = "本批次箱数")
    private Long batchBoxes;

    /** 本批次总数量 */
    @Excel(name = "本批次总数量")
    private BigDecimal batchQuantity;

    /** 计量单位编码 */
    @Excel(name = "计量单位编码")
    private String unitCode;

    /** 批次状态：PENDING-待收货, RECEIVED-已收货 */
    @Excel(name = "批次状态：PENDING-待收货, RECEIVED-已收货")
    private String batchStatus;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 删除标志（0存在 1删除） */
    private String delFlag;

    public void setDeliveryBatchId(Long deliveryBatchId) 
    {
        this.deliveryBatchId = deliveryBatchId;
    }

    public Long getDeliveryBatchId() 
    {
        return deliveryBatchId;
    }
    public void setDeliveryNoteId(Long deliveryNoteId) 
    {
        this.deliveryNoteId = deliveryNoteId;
    }

    public Long getDeliveryNoteId() 
    {
        return deliveryNoteId;
    }
    public void setDeliveryNoteNo(String deliveryNoteNo) 
    {
        this.deliveryNoteNo = deliveryNoteNo;
    }

    public String getDeliveryNoteNo() 
    {
        return deliveryNoteNo;
    }
    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setBatchNo(String batchNo) 
    {
        this.batchNo = batchNo;
    }

    public String getBatchNo() 
    {
        return batchNo;
    }
    public void setInventoryCode(String inventoryCode) 
    {
        this.inventoryCode = inventoryCode;
    }

    public String getInventoryCode() 
    {
        return inventoryCode;
    }
    public void setBatchBoxes(Long batchBoxes) 
    {
        this.batchBoxes = batchBoxes;
    }

    public Long getBatchBoxes() 
    {
        return batchBoxes;
    }
    public void setBatchQuantity(BigDecimal batchQuantity) 
    {
        this.batchQuantity = batchQuantity;
    }

    public BigDecimal getBatchQuantity() 
    {
        return batchQuantity;
    }
    public void setUnitCode(String unitCode) 
    {
        this.unitCode = unitCode;
    }

    public String getUnitCode() 
    {
        return unitCode;
    }
    public void setBatchStatus(String batchStatus) 
    {
        this.batchStatus = batchStatus;
    }

    public String getBatchStatus() 
    {
        return batchStatus;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deliveryBatchId", getDeliveryBatchId())
            .append("deliveryNoteId", getDeliveryNoteId())
            .append("deliveryNoteNo", getDeliveryNoteNo())
            .append("itemId", getItemId())
            .append("orderNo", getOrderNo())
            .append("batchNo", getBatchNo())
            .append("inventoryCode", getInventoryCode())
            .append("batchBoxes", getBatchBoxes())
            .append("batchQuantity", getBatchQuantity())
            .append("unitCode", getUnitCode())
            .append("batchStatus", getBatchStatus())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
